import {createApp} from 'vue'
import App from './App.vue'
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
import "@/assets/css/tailwind.css"
import 'md-editor-v3/lib/preview.css';

import "@/assets/css/theme-dark.styl"
import "@/assets/css/theme-light.styl"
import "@/assets/css/common.styl"
import '@/assets/iconfont/iconfont.css';

import {router} from "@/router.js";
import {useSharedStore} from '@/store/sharedata.js'
import {createPinia} from "pinia";

const pinia = createPinia()
const sharedStore = useSharedStore(pinia)
// 设置初始主题
document.documentElement.setAttribute("data-theme",sharedStore.theme)

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')
